﻿<table cellspacing="0" cellpadding="0" class="cssgrid">
    <tbody>
        <tr class="category">
            <td width="30px" align="center" class="headercart productcategory">
                <span class="norB">STT</span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span class="norB">Account Id</span>
            </td>
            <td width="120px" align="center" class="headercart">
                <span class="norB">Tên tài khoản</span>
            </td>
            <td width="100px" align="center" class="headercart">
                <span class="norB">Loại tài khoản </span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span class="norB">Thời gian</span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span class="norB">Số tiền</span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span class="norB">Tính ra VNĐ</span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span class="norB">Vàng</span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span class="norB">Bạc</span>
            </td>
            <td width="100px" align="center" class="headercart">
                <span class="norB">Loại hình TT</span>
            </td>
            <td width="120px" align="center" class="headercart">
                <span class="norB">Thông tin TT</span>
            </td>
            <td width="180px" align="center" class="headercart">
                <span class="norB">Mô tả</span>
            </td>
        </tr>

        {#foreach $T.Items as payment}
        
        <tr>           
            <td width="30px" align="center" class="headercart">
                <span>{$T.payment.RowNumber}</span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span>{$T.payment.AccountId}</span>
            </td>
            <td width="120px" align="center" class="headercart">
                <span>{$T.payment.AccountName}</span>
            </td>            
            <td width="100px" align="center" class="headercart">
                <span>
                    {#if $T.payment.AccountTypeId==1}
                        Hilo
                    {#/if}
                    {#if $T.payment.AccountTypeId==2}
                        Facebook
                    {#/if}
                    {#if $T.payment.AccountTypeId==3}
                        Google
                    {#/if}
                    {#if $T.payment.AccountTypeId==4}
                        Yahoo
                    {#/if}
                    {#if $T.payment.AccountTypeId==5}
                        Twiter
                    {#/if}
                    {#if $T.payment.AccountTypeId==6}
                        Go.vn
                    {#/if}          
                </span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span>{COMMON.jSonDateToString($T.payment.CreatedDate,2)}</span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span>{COMMON.formatMoney($T.payment.AmountIn)}</span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span>{COMMON.formatMoney($T.payment.VndIn)} VNĐ</span>
            </td>
            <td width="80px" align="center" class="headercart">
                <span>{COMMON.formatMoney($T.payment.ReceiveAu)}</span>
            </td>           
            <td width="80px" align="center" class="headercart">
                <span>{COMMON.formatMoney($T.payment.ReceiveAg)}</span>
            </td> 
            <td width="100px" align="center" class="headercart">
                <span>{$T.payment.PaymentGatewayName}</span>
            </td> 
            <td width="120px" align="center" class="headercart">
                <span>{$T.payment.PaymentAccountInfo}</span>
            </td> 
            <td align="left" width="180px">
                <span>{$T.payment.Description}</span>
            </td> 
        </tr>       
        {#/for}
    </tbody>
</table>
